from django.core import cache
from django.utils.deprecation import MiddlewareMixin


class MyTokenMiddleware(MiddlewareMixin):
    pass
    # def process_request(self,request):
    #     print('aaaaaaaaa')
    #     # print(request)
    #     # if(request.path=='publishgood'):
    #     #     token = request.COOKIES['token']
    #     #     userid = cache.get(token)
    #     #     request.data['userid'] = userid

